import base from './base'
import axios from './http'
import qs from 'qs'

const collect = {
  getCollect (params) {
    return axios.get(`${base.pro}/api/member/favorite`, {
      params
    })
  },
  deleteCollect (params) {
    return axios.post(`${base.pro}/api/member/delCollectSeller`, qs.stringify(params))
  },
  postCollect (params) {
    return axios.post(`${base.pro}/api/member/collectSeller`, qs.stringify(params))
  }
}
export default collect
